package com.gupaoedu.vip.demo.service.impl;

import com.gupaoedu.vip.demo.service.IDemoService;
import com.gupaoedu.vip.spring.annotation.GPService;

/**
 * @Author JLL
 * @Date 2018/11/6/0006 下午 10:43
 */
@GPService //这里也有可能是自己命名
public class DemoService implements IDemoService {

    @Override
    public String getName(String name) {
        return "my name is " + name;
    }

    @Override
    public String getAddress(String address) {
        return "my address is " + address;
    }

    public static void main(String[] args) {
        Class<?> clazz  = DemoService.class;
        for (Class<?> i : clazz.getInterfaces()) {
            System.out.println(i.getName());
        }


    }
}
